package com.morristaedt.mirror.modules.voice.handler;

import android.text.TextUtils;

import com.morristaedt.mirror.bean.SemanticResult;


/**
 * Created by PR on 2017/12/19.
 */

public class HintHandler extends Handler {

    public static String DEFAULT_UNKNOW_ANSWER = "不懂";
    public HintHandler(SemanticResult result) {
        super(result);
    }


//        defaultAnswer.append(Handler.NEWLINE);
//        defaultAnswer.append(Handler.NEWLINE);
//        defaultAnswer.append("<a href=\"more\">你也可以了解我的更多特性</a>");

    @Override
    public String getFormatContent() {
        if(TextUtils.isEmpty(result.answer)) {
            return DEFAULT_UNKNOW_ANSWER;
        } else {
            return result.answer;
        }
    }
}
